<?php


namespace mpend\modules\actor\models;

use common\base\Model;
use common\models\actor\ActorTag;
use common\models\actor\Taglib;
use mpend\modules\actor\controllers\TaglibController;

class TaglibForm extends Model
{
    public $id;

    public $name;

    public $check;

    public function taglist()
    {
        $tagmodel = Taglib::find()->all();
        foreach ($tagmodel as $key => $item) {
            $model = new TaglibForm();
            $model->id = $item->id;
            $model->name = $item->name;
            $model->check = false;
        }
        return $model;
    }

}